@import url(./siderbar.css);

header {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    padding: 0 10px;
}

.header-main {
    position: relative;
    max-width: var(--max-width);
    width: 100%;
}

.header-logo {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 150px;
    height: 70px;
    border-radius: 0 0 20px 20px;
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 0 10px;
}

.header-logo a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header-logo a span {
    color: var(--color);
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
}

.header-cate {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 65%;
    height: 100%;
}

.header-cate ul {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    height: 50px;
    overflow: hidden;
    padding-right: 40px;
}

.header-cate ul li {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.header-cate-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 99999px;
    padding: 0 20px;
    box-shadow: var(--shadow);
    margin-right: 10px;
    height: 40px;
    cursor: pointer;
    transition: box-shadow 300ms ease-in-out;
}

.header-cate-item:hover {
    box-shadow: 0px 3px 5px 0px #999999;;
}

.header-cate-item:hover span {
    color: var(--main-color);
}

.header-cate-item span {
    font-size: 12px;
    line-height: 1;
    color: var(--dark-color);
    padding-left: 8px;
    padding-top: 4px;
}

.header-open {
    position: absolute;
    top: 15px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.header-open div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background-color: #000;
    border-radius: 50%;
}

.header-open::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: #000;
    border-radius: 50%;
}

.header-open::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: #000;
    border-radius: 50%;
}

.header-menu, .header-search {
    display: none;
}

.header-out-search {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.header-search-input {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    background-color: #fff;
    border-radius: 999px;
    padding-left: 20px;
}

.header-search-input input {
    width: 100%;
    font-size: 13px;
    border: none;
    outline: none;
    background-color: transparent;
}

.header-search-input-icon {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 35px;
    background-color: var(--main-color);
    border-radius: 999px;
    cursor: pointer;
}

.header .header-out-search {
    display: none;
}

@media screen and (max-width: 768px) {
    .header-cate {
        display: none;
    }
    .header-logo {
        left: 50%;
        transform: translateX(-50%);
    }

    .header-menu, .header-search {
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 10vmin;
        height: 10vmin;
        background-color: #fff;
        border-radius: 50%;
        box-shadow: var(--shadow);
    }

    .header-menu {
        left: 0;
    }

    .header-search {
        right: 0;
    }

    .header .header-out-search {
        display: flex;
    }

    .header-search-input {
        width: 80%;
        height: 50px;
        box-shadow: var(--shadow);
    }

    .header-search-input-icon {
        right: 5px;
        width: 40px;
        height: 40px;
    }
}